home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mintmant / fchmod.txt < prev    next >
Text File  |  1992-03-24  |  1KB  |  64 lines

  1. Fchmod(2)                 Oct. 7, 1991                  Fchmod(2)
  2.  
  3.  
  4.  
  5. NAME
  6.      Fchmod - set file access permissions
  7.  
  8. SYNOPSIS
  9.      #include <filesys.h>
  10.  
  11.      LONG Fchmod( char *name, WORD mode );
  12.  
  13. DESCRIPTION
  14.      Fchmod changes the file  access  permissions  for  the  file
  15.      named  name.   The  new  access permissions are given in the
  16.      word mode, which may be constructed by or'ing  together  the
  17.      following symbolic constants (defined in filesys.h):
  18.  
  19.      S_IRUSR,
  20.           Read, write, and execute permission (respectively)  for
  21.           the owner of the file.
  22.  
  23.      S_IRGRP,
  24.           Read, write, and execute permission (respectively)  for
  25.           the file's group.
  26.  
  27.      S_IROTH,
  28.           Read, write, and execute permission for everybody else.
  29.  
  30.      Note that not all file systems support all  of  these  bits;
  31.      bits not supported by a file system will be ignored.
  32.  
  33.      Note also that "execute" permission for  a  directory  means
  34.      permission  to  search the directory for a file name or name
  35.      component.
  36.  
  37. RETURNS
  38.      0 on success
  39.  
  40.      EACCDN if the calling process has  an  effective  uid  which
  41.      differs from the owner of the file and which is not 0.
  42.  
  43.      EFILNF if the file is not found
  44.  
  45.      EPTHNF if the path to the file is not found.
  46.  
  47. SEE ALSO
  48.      Fattrib(2), Fxattr(2)
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60. Version 0.9   Last change: MiNT Programmer's Manual             1
  61.  
  62.  
  63.  
  64.